package com.momo.upms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.momo.common.core.request.PageParams;
import com.momo.common.core.result.Rs;
import com.momo.upms.condition.UserCondition;
import com.momo.upms.dto.UserDTO;
import com.momo.upms.entity.User;
import com.momo.upms.vo.UserVO;

public interface UserService extends IService<User> {

    /**
     * 分页查询
     * @param userCondition
     * @return
     */
    Rs<Page<UserVO>> pageUser(PageParams<UserCondition> userCondition);

    /**
     * 新增 用户
     * @param userDTO
     * @return
     */
    Rs<UserVO> insertUser(UserDTO userDTO);

    /**
     * 修改 用户
     * @param userDTO
     * @return
     */
    Rs<UserVO> updateUser(UserDTO userDTO);

    /**
     * 用户id 查询
     * @param userId
     * @return
     */
    Rs<UserVO> getUser(Long userId);

    /**
     * 用户id 删除
     * @param userId
     * @return
     */
    Rs<Boolean> deleteUser(Long userId);

}
